<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=0.3, user-scalable=yes" /><!-- initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0, user-scalable=yes -->
	<meta name="format-detection" content="telephone=no">
	<meta name="Keywords" content="(주)상산 오수처리시설 중앙관리 시스템" />
	<meta name="decription" content="(주)상산 오수처리시설 중앙관리 시스템 입니다." />
	<link rel="shortcut icon" href='<c:url value="/htmlRes/images/favicon.ico" />' type="image/x-icon" />
	<link rel="icon" href='<c:url value="/htmlRes/images/favicon.ico" />' type="image/x-icon" />
	<title>(주)상산</title>
	<script type="text/javascript" src="<c:url value='/htmlRes/js/jquery-1.10.2.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/htmlRes/js/common.js'/>"></script>
	<link rel="stylesheet" type="text/css" href="<c:url value='/htmlRes/css/style.css'/>" />
	<link rel="stylesheet" type="text/css" href="<c:url value='/htmlRes/css/style_r.css'/>" />
	<link rel="stylesheet" type="text/css" href="<c:url value='/htmlRes/css/main.css'/>" />
	<!--[if lt IE 9]>
		<script type="text/javascript" src="/js/respond.min.js"></script>
	<![endif]-->
	<script type="text/javaScript">
	<!--
		$(document).ready(function(){
			$('#logo').click(function(){
				location.href="/main.do";
			});
		});
	-->
	</script>
</head>
<body>
<ul id="skipNavi">
	<li><a href="#container">본문내용 바로가기</a></li>
	<li><a href="#gnb">전체메뉴 바로가기</a></li>
</ul>
<hr />
<div class="wrap">
	<!-- header s -->
	<div class="header">
		<div class="top">
        	<div class="left">
				<h1 class="tit_h1" id="logo">주식회사 상산 <span>오수처리시설 중앙관리시스템</span></h1>
			</div>
			<div class="right" id="userInfo">
            	<c:if test="${not empty loginSessionInfo.ssa_area_name }">
	            	<p class="log_text"><strong>${loginSessionInfo.ssa_area_name }</strong>이 로그인 중입니다</p>
	            	<c:if test="${!loginSessionInfo.admin }">
	                <span class="info_box">
						<a href="<c:url value='/servicearea/serviceareaWriteForm.do' />" class="btn_modify1">휴게소 정보 수정</a>
					</span>
					<c:if test="${not empty loginSessionInfo.ssa_admin_id }">
		                <span class="info_box">
							<a href="<c:url value='/user/userWriteForm.do' />" class="btn_modify2">담당자 정보 수정</a>
						</span>
	            	</c:if>
	            	</c:if>
	                <span class="log_box">
						<a href="<c:url value='/login/logout.do' />" class="btn_logout">로그아웃</a>
					</span>
            	</c:if>
            </div>
		</div>
		<div id="gnb">
			<c:set var="menuCssName" value="gnb_area"/>
			<c:if test="${loginSessionInfo.admin }">
				<c:set var="menuCssName" value="gnb_area_admin"/>
			</c:if>
			<ul class="${menuCssName } selectMenu">
				<c:set var="levelChange" value="true"/>
				<c:forEach var="menu" items="${topMenu }" varStatus="status">
					<c:set var="depth2Show" value="none"/>
					<c:set var="depth1On" value=""/>
					<c:set var="depth2On" value=""/>
					<c:if test="${fn:indexOf( menu[4], fn:substring(nowMenuGroup,0,3)) > -1 and not empty nowMenuGroup}">
						<c:set var="depth2Show" value=""/>
						<c:set var="depth1On" value=" menuOn"/>
					</c:if>
					<c:if test="${fn:indexOf( nowMenuGroup, menu[4]) > -1 and not empty nowMenuGroup}">
						<c:set var="depth2On" value="menuSubOn"/>
					</c:if>
					<c:if test="${!status.first and levelChange and menu[3] eq '1'}">
						</li>
					</c:if>
					<c:if test="${menu[3] eq '1'}">
						<c:if test="${!levelChange}">
								</ul>
							</li>
						</c:if>
						<c:set var="levelChange" value="true"/>
						<li class="menu_dep1${depth1On }">
							<a href="<c:url value='${menu[5]}' />">${menu[2]}</a>
					</c:if>
					<c:if test="${menu[3] eq '2'}">
						<c:if test="${levelChange }">
	                		<ul class="menu2dep_m${menu[6]}" style="display:${depth2Show};">
							<c:set var="levelChange" value="false"/>
						</c:if>
	 	                	<li id="${depth2On}"><a href="<c:url value='${menu[5]}' />">${menu[2]}</a></li>
					</c:if>
					<c:if test="${status.last && !levelChange}">
						</ul>
					</li>
					</c:if>
				</c:forEach>
			</ul>
		</div>
	</div>